{include file="header.html"}
<style>
    tr td.handler,th.handler{
        width:100px;
    }
</style>
<div id="rightTop">
    <p>监控定义</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=monitor_define&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="monitor_define" />
                <input type="hidden" name="act" value="index" />

                <input class="queryInput" type="text" placeholder="请输入名称" id="file_value" name="file_value" value="{$query.title|escape}" />

                <input type="submit" class="formbtn" value="{$lang.query}" />
                <!--{if $filtered}-->
                <input class="formbtn" onclick="location='index.php?app=monitor_define'" type="button" value="{$lang.cancel_query}"/>
                <!--{/if}-->
            </div>
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">

        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.Name}</td>
            <td>{$lang.Note}</td>
            <td>{$lang.ShowNav}</td>
            <td>{$lang.Status}</td>
            <td class="handler">{$lang.handler}</td>
        </tr>

        <!--{foreach from=$monitor_defines item=monitor_define}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$monitor_define.Id}"/></td>
            <td>{$monitor_define.Name|escape}</td>
            <td>{$monitor_define.Note|escape}</td>

            <td><!--{if $monitor_define.ShowNav==1}-->显示<!--{/if}-->
                <!--{if $monitor_define.ShowNav==0}-->隐藏<!--{/if}-->
            </td>
            <td><!--{if $monitor_define.Status}-->
                <img src="templates/style/images/monitor_enabled.png" ectype="monitor_edit" fieldname="Status" fieldid="{$monitor_define.Id}" fieldvalue="1" title="{$lang.editable}" />

                <!--{else}-->
                <img src="templates/style/images/monitor_disabled.png" ectype="monitor_edit" fieldname="Status" fieldid="{$monitor_define.Id}" fieldvalue="0" title="{$lang.editable}"/>

                <!--{/if}-->
            </td>






            <td ><a href="index.php?app=monitor_define&amp;act=edit&amp;id={$monitor_define.Id}">{$lang.edit}</a>
                |<a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=monitor_define&amp;act=drop&amp;id={$monitor_define.Id}');">{$lang.drop}</a>
                <!--{if $monitor_define.Status==1}--> |<a href="index.php?app=screen_monitor&amp;Id={$monitor_define.Id}" target="_blank">预览</a><!--{/if}--></td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $monitor_defines}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=monitor_define&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
